import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import main from '@/components/main'
Vue.use(Router)

export default new Router({
    routes: [{
        path: '/:id',
        name: 'main',
        component: main
    }, {
        path: '/index/:id',
        name: 'index',
        component: index
    }]
})